LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 11-19-2013, 08:41 PM   #1
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Exclamation [CONTRIBUTED NOTICE] Using Fedora to build LFS not advised.


Already this topic has surfaced at least twice between a few users as it is, so this needs to be publicly noted.

Until anyone can determine exactly what the problem is with Red Hat/Fedora, whatever the problem is as to what is causing build problems, it is advised and noted that anyone attempting to build LFS should NOT be using a distribution of Fedora or Red Hat at this time.

Currently building is able to be done with Slackware, as well as Debian and Ubuntu with some work to make them complaint. There are possibly others that will work also.

Last edited by ReaperX7; 11-19-2013 at 09:51 PM.
 
Old 11-19-2013, 08:57 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
an educated guess would be the Gcc 4.8.2 that fedora is using

not many things will yet build in 4.8
using gcc 4.7 through 4.3 still NEED programs hacked to build

However CentOS 6.4 and gcc 4.4 should work as a platform to build LFS

Last edited by John VV; 11-19-2013 at 09:04 PM.
 
Old 11-19-2013, 09:57 PM   #3
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
That could be the case, but then again LFS 7.4 uses GCC 4.8.1 and LFS 7.4 will rebuild against itself without an issue. At least for me it did.

It could also be an upstream patch set Red Hat is using against it's various packages in Fedora that could be causing it also. Which one remains to be seen as often distributions, like Red Hat for example, use lots of patches on packages, some that are unique only to that distribution.

Last edited by ReaperX7; 11-19-2013 at 10:05 PM.
 
Old 11-20-2013, 07:44 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
After noticing and reading this thread this morning I decided to do a test build using Fedora 19 as host and LFS 7.4 stable.

Up to this point (I just finished all chapters up to and including chapter 6.17 GCC-4.8.1) I did not run into anything blocking.

Here's some info:
- Host image used: fedora-live-desktop-x86_64-19-1.iso
- VM setup: 4 Gb Ram / 4 CPU's / 30 Gb Disk (15 Gb for Fedora, 15 Gb for LFS)
- default installation (root + 1 normal user)

Host System Requirements for fedora to build lfs 7.4 stable:
- bison not found
- yacc not found
- gcc not found
- g++ not found
- m4 not found
- patch not found
- perl not found
- makeinfo not found

Install missing requirements on Fedora:
Code:
yum install bison byacc gcc gcc-c++ m4 patch perl texinfo
Chapter 2:
- I did run into the following when creating/mounting the partition for LFS: When logged in as a normal user and you use the disk manager to create the partition this partition is mounted with the credentials of that user (i.e.: drwx------ druuna:druuna /mnt/lfs). This will generate a permission denied later on. This is easily overcome. As root set the correct owner, group and permissions after mounting $LFS:
Code:
# chmod root:root $LFS
# chmod 755 $LFS
Chapter 5:
- I did not run any of the tests in chapter 5 and used the following MAKEFLAGS setting: MAKEFLAGS='-j 5'

Chapter 6:
- I did run the test in chapter 6 and also used MAKEFLAGS='-j 5'

- I did get SELinux notifications when running glibc's, binutils' and gcc's make check. Which I ignored and then removed it from the DB. Removing this trigger from the DB might not be advisable when Fedora is your primary machine.
I totally forgot about SELinux when starting this test. Out-of-the-box it is set to enforcing, you are probably better off to set it to permissive while building LFS.


Up to this point it seems that Fedora can be used as host to build LFS. I do have to admit that Fedora needs more work to get it compliant. All in all I would not advise people to use it as host to build LFS.


Off-topic rant: I truly, wholeheartedly and intensely hate Gnome 3!!
 
Old 11-20-2013, 08:18 PM   #5
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Point well taken Druuna. At least we know what is causing it and it's permissions problems as well as issues dealing with SELinux. Yes, this would be one of those instances where I'd say getting Red Hat or Fedora compliant for LFS building is a lot of work, and possibly more trouble than it's worth.
 
Old 12-09-2013, 11:27 AM   #6
engineer
Member
 
Registered: Oct 2007
Distribution: LFS
Posts: 69

Rep: Reputation: 2
Just figured I'd throw this out here. I built LFS 7.1 on Fedora 17 successfully back in January/Feb. Right now, I'm trying it again on Fedora 19 (again using the book f/ LFS 7.1).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: UK judge: Apple notice on Samsung a - breach of order - , orders new notice LXer Syndicated Linux News 0 11-02-2012 02:10 PM
Best OS to build lfs capricus Linux From Scratch 5 06-28-2012 04:28 AM
Will compiling LFS on an 64 bit distro build an 64 bit LFS? Vampirite Linux From Scratch 4 08-31-2007 02:48 PM
LXer: Novell Receives Delisting Notice From NASDAQ and Notice of Default From Wells Fargo Related to its Convertible Subordinated Notes Due to Late Filing of Form 10-Q LXer Syndicated Linux News 0 09-21-2006 03:54 AM
LXer: Fedora Outage Notice for August 30th, 2006 LXer Syndicated Linux News 0 08-30-2006 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration